package com.webservice.xmloper.commonDataManager;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

import com.thoughtworks.xstream.XStream;

public class CommonDataManagerCodeOper {
	
	/**
	 *解析基础数据管理指令查询xml文件 
	 */
	public static CommonDataCodeXml parseCommonDataManagerCodeXml(String xmlString) throws Exception{
		XStream xs = new XStream();
		xs.processAnnotations(CommonDataCodeXml.class);
		InputStream myIn=new ByteArrayInputStream(xmlString.getBytes());
		return (CommonDataCodeXml) xs.fromXML(myIn);
	}
}
